package task;

import java.io.Serializable;

public class ConnectionDescription implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private String url;
	private String user;
	private String passwd;
	public ConnectionDescription() {}
	public ConnectionDescription(String name, String url, String user,
			String passwd) {
		this.name = name;
		this.url = url;
		this.user = user;
		this.passwd = passwd;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getPasswd() {
		return passwd;
	}
	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}
	@Override
	public String toString() {
		return String.format("ConnectionDescriptor(%s, %s, %s, %s)", name, url, user, passwd);
	}
}
